package com.anhry.app.safety.manage.enterprise.bean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbCorpPerson entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_CORP_PERSON")
@SequenceGenerator(name = "TB_CORP_PERSON_SEQ", sequenceName = "TB_CORP_PERSON_SEQ", allocationSize = 1)
public class TbCorpPerson implements java.io.Serializable {

	// Fields

	private Long id;
	private String perName;//姓名
	private String perPhone;//电话
	private String perMobile;//手机
	private String perEmail;//邮箱
	private String perType;//类型1：法定代表人2：主要负责人3：安全负责人4：安全管理人员
	private Long corpId;
	private String perCode;
	private Date perBirthday;
	private String perSex;//性别 0:女1：男
	private Date certBtime;//
	private Date certEtime;//
	private String perDegree;//学历
	private String perTraining;//培训情况
	private String perWorkingYear;//工作年限

	// Constructors

	

	/** default constructor */
	public TbCorpPerson() {
	}

	/** minimal constructor */
	public TbCorpPerson(Long id) {
		this.id = id;
	}

	/** full constructor */
	public TbCorpPerson(Long id, String perName, String perPhone,
			String perMobile, String perEmail, String perType, Long corpId,
			String perCode, Date perBirthday, String perSex, Date certBtime,
			Date certEtime,String perDegree,String perTraining,String perWorkingYear) {
		this.id = id;
		this.perDegree = perDegree;
		this.perTraining = perTraining;
		this.perWorkingYear = perWorkingYear;
		this.perName = perName;
		this.perPhone = perPhone;
		this.perMobile = perMobile;
		this.perEmail = perEmail;
		this.perType = perType;
		this.corpId = corpId;
		this.perCode = perCode;
		this.perBirthday = perBirthday;
		this.perSex = perSex;
		this.certBtime = certBtime;
		this.certEtime = certEtime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "TB_CORP_PERSON_SEQ")
	@Column(name = "ID", unique = true, nullable = false, precision = 11, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "PER_NAME", length = 128)
	public String getPerName() {
		return this.perName;
	}

	public void setPerName(String perName) {
		this.perName = perName;
	}
	
	@Column(name = "PER_DEGREE", length = 2)
	public String getPerDegree() {
		return perDegree;
	}

	public void setPerDegree(String perDegree) {
		this.perDegree = perDegree;
	}

	@Column(name = "PER_TRAINING", length = 1280)
	public String getPerTraining() {
		return perTraining;
	}

	public void setPerTraining(String perTraining) {
		this.perTraining = perTraining;
	}

	@Column(name = "PER_WORKINGYEAR", length = 128)
	public String getPerWorkingYear() {
		return perWorkingYear;
	}

	public void setPerWorkingYear(String perWorkingYear) {
		this.perWorkingYear = perWorkingYear;
	}

	@Column(name = "PER_PHONE", length = 64)
	public String getPerPhone() {
		return this.perPhone;
	}

	public void setPerPhone(String perPhone) {
		this.perPhone = perPhone;
	}

	@Column(name = "PER_MOBILE", length = 64)
	public String getPerMobile() {
		return this.perMobile;
	}

	public void setPerMobile(String perMobile) {
		this.perMobile = perMobile;
	}

	@Column(name = "PER_EMAIL", length = 256)
	public String getPerEmail() {
		return this.perEmail;
	}

	public void setPerEmail(String perEmail) {
		this.perEmail = perEmail;
	}

	@Column(name = "PER_TYPE", length = 1)
	public String getPerType() {
		return this.perType;
	}

	public void setPerType(String perType) {
		this.perType = perType;
	}

	@Column(name = "CORP_ID", precision = 11, scale = 0)
	public Long getCorpId() {
		return this.corpId;
	}

	public void setCorpId(Long corpId) {
		this.corpId = corpId;
	}

	@Column(name = "PER_CODE", length = 32)
	public String getPerCode() {
		return this.perCode;
	}

	public void setPerCode(String perCode) {
		this.perCode = perCode;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "PER_BIRTHDAY", length = 7)
	public Date getPerBirthday() {
		return this.perBirthday;
	}

	public void setPerBirthday(Date perBirthday) {
		this.perBirthday = perBirthday;
	}

	@Column(name = "PER_SEX", length = 1)
	public String getPerSex() {
		return this.perSex;
	}

	public void setPerSex(String perSex) {
		this.perSex = perSex;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CERT_BTIME", length = 7)
	public Date getCertBtime() {
		return this.certBtime;
	}

	public void setCertBtime(Date certBtime) {
		this.certBtime = certBtime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CERT_ETIME", length = 7)
	public Date getCertEtime() {
		return this.certEtime;
	}

	public void setCertEtime(Date certEtime) {
		this.certEtime = certEtime;
	}

}